<template>
    <div class="app-container">
      <el-row>
        <el-form ref="form" :inline="true" label-width="80px">
          <el-form-item label="商品名称">
            <el-input placeholder="请输入商品名称"></el-input>
          </el-form-item>
          <el-form-item label="售卖途径">
            <el-select placeholder="请选择售卖途径">
              <el-option label="线上" value="online"></el-option>
              <el-option label="线下" value="offline"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="search">查询</el-button>
          </el-form-item>
        </el-form>
      </el-row>
      <el-row>
        <el-table :data="tableData" border height="100%" style="width: 99%">
          <el-table-column prop="goodName" label="商品名称" ></el-table-column>
          <el-table-column prop="createTime" label="添加日期" width="180"></el-table-column>
          <el-table-column prop="remark" label="备注" align="center"></el-table-column>
        </el-table>
      </el-row>
    </div>
  </template>
  
  <script>
  export default {
    name: "roleList",
    props: [],
    data() {
      return {
        checkboxd: [],
        tableData: [
          {
            createTime: "2016-05-02",
            goodName: "王小虎",
            remark: "上海市普陀区金沙江路 1518 弄",
          },
          {
            createTime: "2016-05-04",
            goodName: "王小虎",
            remark: "上海市普陀区金沙江路 1517 弄",
          },
          {
            createTime: "2016-05-01",
            goodName: "王小虎",
            remark: "上海市普陀区金沙江路 1519 弄",
          },
          {
            createTime: "2016-05-03",
            goodName: "王小虎",
            remark: "上海市普陀区金沙江路 1516 弄",
          },
          {
            createTime: "2016-05-02",
            goodName: "王小虎",
            remark: "上海市普陀区金沙江路 1518 弄",
          },
          {
            createTime: "2016-05-04",
            goodName: "王小虎",
            remark: "上海市普陀区金沙江路 1517 弄",
          },
          {
            createTime: "2016-05-01",
            goodName: "王小虎",
            remark: "上海市普陀区金沙江路 1519 弄",
          },
          {
            createTime: "2016-05-03",
            goodName: "王小虎",
            remark: "上海市普陀区金沙江路 1516 弄",
          },
        ],
      };
    },
    methods: {
      search() {
        alert("aa");
      },
    },
  };
  </script>
  
  <style lang="scss" scoped>
  .el-row {
    margin-bottom: 20px;
  
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  .el-col {
    border-radius: 4px;
  }
  
  .bg-purple-dark {
    background: #99a9bf;
  }
  
  .bg-purple {
    background: #d3dce6;
  }
  
  .bg-purple-light {
    background: #e5e9f2;
  }
  
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
  </style>